package com.mars.algorithm;

/**
 * @Author King
 * @create 2020/6/29 17:26
 */
public class ArrayAlgorithm {

    public static void main(String[] args) {
        //代码1
        String sa = "ab";
        String sb = "cd";
        String sab = sa + sb;
        String s = "abcd";
        System.out.println(sab == s);
        //代码2
        String sc = "ab" + "cd";
        String sd = "abcd";
        System.out.println(sc == sd);
    }
}
